//
//  FunyViewMode.swift
//  StudyDY
//
//  Created by yinchangming on 2018/7/11.
//  Copyright © 2018年 yinchangming. All rights reserved.
//

import UIKit

class FunyViewMode {
    var rooms=[RoomList]()
    
}
extension FunyViewMode{
    func  requsetData(resultCallBack:@escaping ()->()){
        NetTools.requsetData(urlStr: getColumnRoom, type: .get) { (result) in
            let resultDict=result as! [String : Any]
            let dataArr = resultDict["data"] as! [[String:Any]]
            for dict in dataArr{
                self.rooms.append(RoomList(dict: dict))
            }
            resultCallBack()
        }
    }
}
